//
//@File    :	11.9_usetime2.cpp
//@Time    :	2021/08/29 22:31:50
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	using the third draft of the Time class
//

#include <iostream>
#include "11.7_mytime2.h"

int main()
{
    using std::cout;
    using std::endl;
    Time weeding(4,35);
    Time waxing(2,47);
    Time total;
    Time diff;
    Time adjusted;

    cout<<"weeding time = ";
    weeding.Show();
    cout<<endl;

    cout<<"total work time = ";
    total = weeding + waxing;
    total.Show();
    cout<<endl;

    diff = weeding-waxing;
    cout<<"weeding time - waxing time = ";
    diff.Show();
    cout<<endl;

    adjusted = total*1.5;
    cout<<"adjusted work time = ";
    adjusted.Show();
    cout<<endl;
    system("pause");
    return 0;
}